<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title></title>
</head>
<body>
<div id="grand">1
<div id="parent">2
<div id="child">3</div>
	<div id="sibling">4</div>
</div>
<div id="parent1">5
	<div id="child1">6</div>
	<div id="sibling1">7</div>
</div>
<input type="checkbox"  class="a1"/>
<input type="checkbox" />
<input type="checkbox" class="a1"/>
<input type="checkbox" />
<input type="checkbox" class="a1" />
<button onclick="check()">确定</button>
</div>

<script>
	function check(){
		// var checkboxs=document.querySelectorAll('input.a1');
		var checkboxs=document.querySelectorAll('input.a1.checked');
		// var checkboxs=document.querySelectorAll('input:checked');//选择器
		console.log(checkboxs);
		
	}
	
	
	
</script>
</body>
</html>
